$(function(){
  /*刷新后台*/
  $(".refresh").click(function(){
    window.location.reload();
  })
})
/*导航切换*/
function _M(menuid,targetUrl) {
    $("#leftMain").load('/index.php?m=Yzadmin&c=Public&a=menu_nav&mid='+menuid);
		$("#rightMain").attr('src', targetUrl);
}
/*左侧栏目跳转*/
function _MP(menuid,targetUrl) {
    $("#rightMain").attr('src', targetUrl);
    $('.menu-item').removeClass("active");
    $('#_MP'+menuid).addClass("active");
}
/*右侧iframe高度*/
function onresize(){
    var heights = document.documentElement.clientHeight-63;
    $('#rightMain').height(heights);
}
//锁屏
function lockPage(){
	layer.open({
		title : false,
		type : 1,
		content : $("#lock-box"),
		closeBtn : 0,
		shade : 0.9
	});
}
/*退出*/
function Logout(){
    //询问框
    layer.confirm('您确定要退出吗？', {
        btn: ['确定','取消'] //按钮
    }, function(){
        location.href = "/index.php?m=Yzadmin&c=Public&a=logout";
        layer.msg('您已退出内容管理系统');
    }, function(){

    });
}
